package com.itheima.mapper;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MemberMapper1 {

    /**
     * 根据身份证号查询会员
     * @param idCard 身份证号
     * @return 会员对象
     */
    @Select("select * from t_member where idCard = #{idCard}")
    Member findByIdCard(String idCard);

    /**
     * 添加会员
     * @param member 会员对象
     */
    void add(Member member);
}
